package com.ruoyi.order.config;

import org.springframework.amqp.core.Queue;
import org.springframework.amqp.core.QueueBuilder;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @description:
 * @author: 弔人
 * @time: 2022/10/31 16:30
 */
@Configuration
public class RabbitMqConfig {

    private static final String QUEUE_NAME = "queue_1";

    @Bean
    public Queue queueDeclare(){
        return QueueBuilder.durable(QUEUE_NAME).build();
    }
}
